package com.wei;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author :sunwei
 * @Description:
 * @Date create in 22:04  2021/4/29
 * @Modified by:
 * -Xms60m -Xmx60m -XX:SurvivorRatio=8
 */
public class GCTest {

    public static void main(String[] args) {
        List list = new ArrayList<>();

        for (int i = 0; i < 10000; i++) {
            byte[] bytes = new byte[100*1024];
            list.add(bytes);

            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
